<?php

	echo '<fieldset><legend>Dados</legend>';
	echo $this->Form->create('Usuario');
	echo $this->Form->input('id');
	echo $this->Form->input('nome',array('type'=>'text', 'class' => 'tamanho50', 'label'=> __('Nome'), 'maxlength' => 100));
	echo $this->Form->input('username',array('type'=>'text', 'class' => 'tamanho30', 'label'=> __('Login'), 'maxlength' => 30));
	echo $this->Form->input('newpassword', array('type' => 'password', 'label' => 'Nova senha', 'maxlength' => 10));
	echo $this->Form->input('grupo_id',array('type'=>'select', 'options'=>$grupos, 'empty'=>'Selecione..', 'label'=> __('Grupo')));
	echo $this->Form->input('ativo', array('type'=> 'checkbox', 'checked' => 'checked', 'div' => array('style' => 'clear:left')));
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/{$this->request->controller}/index'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';
